//
//  LCSpeakButton.h
//  语音合成识别
//
//  Created by 九酷 on 2018/5/11.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <LCSpeak/LCSpeak.h>
#import "YYAnimatedImageView.h"

typedef void(^ClickSpeak)(void);

@interface LCSpeakButton : UIButton
<BDSSpeechSynthesizerDelegate,UITextViewDelegate>
{
    float        progressValue;//记录总进度
    float        phaseValues;//记录每个节点的进度
    BOOL         isClickState;//按钮的状态 yes播放  no  停止
    BOOL         isOne;//记录  是否是第一次执行
}
@property (nonatomic, copy) ClickSpeak clickSpeak;
@property(nonatomic,strong) NSString * strControl;//传的总的字符串
@property(nonatomic,assign) NSInteger playNumber;
@property(nonatomic,strong) NSMutableArray * addArrayData;
@property(nonatomic,strong) YYAnimatedImageView *webImageView;

@property(nonatomic,assign) NSInteger PlayAudio;//进来之前播放音频1   反之其他值

- (void)clickOnBut;
- (void)synthesizerCanceled;

@end
